<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">收入明细</h1>
</div>
<div class="wrapper-sm" ng-controller="receivableBillIncomeManagentController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold"></div>
		<ng-form class="panel-body form-validation form-horizontal" id="formIncome" name="formIncome">
			<div class="form-group">
			<label class="control-label pull-left m-t-xs w-xs">结算单位</label>
			<label class="col-lg-5 control-label m-t-xs text-left">{{settleName}}</label>
			</div>
			<div class="line pull-in"></div>

			<div class="form-group">
				<label class="pull-left control-label w-xs">收入金额<span class="text-danger">*</span></label>
				<div class="col-md-2 ">
					<input required type="text" class="form-control input-sm" ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/"  name="amount" id="page_receivableBillManagent_income_amount" ng-model="incomeAddData.amount" placeholder="请输入收入金额">
				</div>		
			</div>
			
			<div class="line line-xs pull-in"></div>

			<div class="form-group">
			
			<label class="pull-left control-label w-xs">收款日期<span class="text-danger">*</span></label>
			<div class="col-md-2 col-xs-12 ">
				<div class="input-group input-group-sm date">
					<input id="shipStartTime" datetimepicker plugintype="datetime" ng-model="incomeAddData.receiptTime" name="receiptTime" placeholder="起始时间" class="form-control"
						type="text" required/>
					<span id="openshipStartTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>

			</div>


			<div class="line line-xs pull-in"></div>
			<div class="form-group">
			<label class="pull-left control-label w-xs">收入说明</label>
			<div class="col-lg-5">
				<textarea class="form-control input-sm" ng-model="incomeAddData.description" placeholder="请填写应收说明" name="description"></textarea>
			</div>
			</div>

			<div class="line line-xs pull-in"></div>
			<div class="form-group">
			<label class="pull-left control-label w-xs"></label>
			<div class="col-md-2 col-xs-12">
				<button ng-disabled="!formIncome.$valid" id="page_receivableBillManagent_income_addIncome" ng-click="addIncome()" class="pull-right-xs btn btn-sm btn-info btn-addon m-t-sm "><i class="fa fa-plus"></i>新增收入</button>
			</div>
			</div>
			<div class="line  pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">开票总额：</label>
			<label class="col-lg-2 control-label m-t-xs text-left">{{totalMoney | number:2}} 元</label>
			<label class="control-label pull-left m-t-xs w-xs">不含税：</label>
			<label class="col-lg-2 control-label m-t-xs text-left">{{excludingTax | number:2 }} 元</label>
			<label class="control-label pull-left m-t-xs w-xs">收入总额：</label>
			<label class="col-lg-2 control-label m-t-xs text-left">{{incomeMoney | number:2 }} 元</label>
			<label class="control-label pull-left m-t-xs w-xs">余额：</label>
			<label class="col-lg-2 control-label m-t-xs text-left">{{(totalMoney+excludingTax) - incomeMoney | number:2 }}  元</label>
		</ng-form>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			应收账单列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" ui-grid-pagination ui-grid-auto-resize style="height:{{heightA}}px; min-height:395px; overflow-y:hidden; min-width:1000px;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="form-group">
				<button id="page_receivableBillManagent_income_back" class="pull-right-xs btn btn-sm btn-warning btn-addon" ng-click="back()" ><i class="fa fa-reply"></i>返回</button>
			</div>
		</div>
	</div>
</div>